using System.Windows;

namespace ChessKit.Common
{
  public static class CellStyles
  {
    public static readonly DependencyProperty IsPossibleMoveTargetProperty =
      DependencyProperty.RegisterAttached("IsPossibleMoveTarget", typeof (bool), typeof (CellStyles), new PropertyMetadata(default(bool)));

    public static void SetIsPossibleMoveTarget(UIElement element, bool value)
    {
      element.SetValue(IsPossibleMoveTargetProperty, value);
    }

    public static bool GetIsPossibleMoveTarget(UIElement element)
    {
      return (bool) element.GetValue(IsPossibleMoveTargetProperty);
    }



    public static readonly DependencyProperty IsLastMoveLocationProperty =
      DependencyProperty.RegisterAttached("IsLastMoveLocation", typeof (bool), typeof (CellStyles), new PropertyMetadata(default(bool)));

    public static void SetIsLastMoveLocation(UIElement element, bool value)
    {
      element.SetValue(IsLastMoveLocationProperty, value);
    }

    public static bool GetIsLastMoveLocation(UIElement element)
    {
      return (bool) element.GetValue(IsLastMoveLocationProperty);
    }
  }
}